package com.wframe.project.former.task;

import com.wframe.project.former.enums.OrderStatusEnum;
import com.wframe.project.former.enums.OrderSynEnum;
import com.wframe.project.jnd.services.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by lwb on 2017/5/10.
 */
@Component
public class OrderConfirmTask {

    @Autowired
    private OrderService orderService;

    @RedisLock("orderConfirmTask")
    public void exectask() {
        orderService.updateStatus(OrderStatusEnum.NoSend.getStatus(), OrderSynEnum.NoSyn.getStatus());
    }

}
